package com.ld.service.impl;

import com.ld.mapper.UsersMapper;
import com.ld.pojo.Users;
import com.ld.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UsersService {

	@Autowired
	private UsersMapper usersMapper;

	//1. 查询所有的用户
	@Override
	public List<Users> findAll() {
		return usersMapper.selectAll();
	}
}
